//
//  YsCloudFileBaseVC.m
//  Example
//
//  Created by 宋宏康 on 2020/3/2.
//  Copyright © 2020 jiaxin. All rights reserved.
//

#import "YsCloudFileBaseVC.h"

@interface YsCloudFileBaseVC ()

@end

@implementation YsCloudFileBaseVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initData];
    [self initSubviews];
    [self setupToolbarItems];
    [self setupNavigationItems];
    /// 去掉navigationBar的分割线
    [self initClick];
}

- (void)initSubviews
{
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self deleteSeparatorLine];
}

- (void)setupToolbarItems
{
    
}

- (void)setupNavigationItems
{
    
}

- (void)initData
{
    
}

- (void)initClick
{
    
}

/// 去掉分割线
- (void)deleteSeparatorLine
{
    [self.navigationController.navigationBar.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        if ([obj isKindOfClass:NSClassFromString(@"_UIBarBackground")]) {
            UIView *view =  [obj valueForKey:@"shadowView1"];
            if (view) view.hidden = YES;
            *stop = YES;
        }
    }];
}

@end
